<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>字符串测试</title>
  <script src="../../src/string/index.js"></script>
</head>
<body>
  <script>
    //声明字符串
    let str1 = 'iloveyou';
    let str2 = 'lol';
    let str3 = '哈哈发顺丰为二十快乐酱豆腐立刻设计的速度';
    console.log(reverseString(str1))
    console.log(palindrome(str2))
    console.log(truncate(str3,10))
  </script>
</body>
</html>